//
//  ZYCMessageRecordSectionHeaderView.m
//  ZDSC
//
//  Created by ZDTX on 2021/7/20.
//

#import "ZYCMessageRecordSectionHeaderView.h"
@interface ZYCMessageRecordSectionHeaderView()

@property (nonatomic, strong) UILabel *titleLabel;
@end
@implementation ZYCMessageRecordSectionHeaderView

- (void)setTitleSting:(NSString *)titleSting{
    _titleSting = titleSting;
    _titleLabel.text = titleSting;
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        [self addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self);
        }];
    }
    return self;
}

- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [UILabel LabelWithFont:kCustomFont(@"PingFangSC-Regular", 13) titleColor:HEX_RGB(@"#999999") textAlignment:ZZTextAlignmentCenter];
        _titleLabel.text = @"12:20";
    }
    return _titleLabel;
}

@end
